<template lang="">
    <div>
        <van-field label='名称' v-model='name'/>
        <van-field label='资源地址' v-model='url'/>
        <van-button @click='add'>添加</van-button>
    </div>
</template>
<script>
export default {
    data(){
        return{
            name:'',
            url:''
        }
    },
    methods: {
        add(){
            this.axios.post('resourceM',{"name":this.name,'url':this.url}).then(res=>{

            })
        }
    },
}
</script>
<style lang="">
    
</style>